import request from '@/utils/request'
import { apiVersion } from '@/config'

// 全部模型测试
export function getAllGameModelTests(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion/all`,
        method: 'get',
        data
    })
}
export function getGameModelTests(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion`,
        method: 'get',
        data
    })
}
export function getGameModelTestsMonitor(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion/monitor`,
        method: 'get',
        data
    })
}
/**
 * 添加模型测试
 * @param {} data 
 */
export function addGameModelTest(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion`,
        method: 'post',
        data: data
    })
}
/**
 * 删除模型测试
 * @param {} data 
 */
export function delGameModelTest(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion/${data.id}`,
        method: 'delete',
        data: data
    })
}
/**
 * 更新模型测试
 * @param {} data 
 */
export function putGameModelTest(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion`,
        method: 'put',
        data: data
    })
}
/**
 * 取得模型测试
 * @param {*} data 
 */
export function getGameModelTestDetail(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion/${data.id}`,
        noLoadding: true,
        method: 'get',
    })
}
/**
 * 获取podname
 * @param {*} data 
 */
export function getGameModelTestPodName(data) {
    return request({
        url: `/admin/${apiVersion}/game/taskVersion/${data.id}/podName`,
        noLoadding: true,
        method: 'get',
    })
}
